import { IParam } from '../../common';

export interface IViewModel {
	/**
	 * 视图标题
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	caption: string;

	/**
	 * 视图抬头
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	title: string;

	/**
	 * 视图标题语言资源
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	capPSLanguageRes: string;

	/**
	 * 视图抬头多语言
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	titlePSLanguageRes: string;

	/**
	 * 显示信息栏
	 *
	 * @type {boolean}
	 * @memberof IViewModel
	 */
	showDataInfoBar: boolean;

	/**
	 * 视图标识
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	codeName: string;

	/**
	 * 视图样式名
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	cssName: string;

	/**
	 * 视图名称
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	name: string;

	/**
	 * 视图类型
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	viewType: string;

	/**
	 * 视图样式
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	viewStyle: string;

	/**
	 * 是否默认加载
	 *
	 * @type {boolean}
	 * @memberof IViewModel
	 */
	isLoadDefault: boolean;

	/**
	 * 是否显示标题
	 *
	 * @type {boolean}
	 * @memberof IViewModel
	 */
	showCaption: boolean;

	/**
	 * 实体codeName
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	entityCodeName?: string;

	/**
	 * 主键属性
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	keyPSAppDEField?: string;

	/**
	 * 主信息属性
	 *
	 * @type {string}
	 * @memberof IViewModel
	 */
	majorPSAppDEField?: string;

	/**
	 * 工具栏按钮
	 *
	 * @type {IParam[]}
	 * @memberof IMDViewModel
	 */
	toolbarItems?: IParam[];

	/**
	 * 视图布局面板项模型对象
	 *
	 * @type {IParam}
	 * @memberof IViewModel
	 */
	layoutItems?: IParam;

	[key: string]: any;
}
